import os
import rtconfig
from building import *

cwd = GetCurrentDir()

# add general drivers
src = Split('''
CubeMX_Config/Src/main.c
CubeMX_Config/Src/stm32h7xx_hal_msp.c
CubeMX_Config/Src/system_stm32h7xx.c
CubeMX_Config/startup_stm32h750xx.s
''')

path =  [cwd]
path += [cwd + '/CubeMX_Config/Inc']

CPPDEFINES = ['STM32H750xx']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)

Return('group')
